package org.yum.gen;

import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class CardView extends JPanel{

	
	
	public CardView() {
		
		setLayout(null);
		this.setBackground(Color.white);
		
	}
	
	public void CreateView(ImageIcon img) {
		this.removeAll();
		
		JLabel displayImage = new JLabel(img,JLabel.CENTER);
		displayImage.setBounds(0,0,img.getIconWidth(),img.getIconHeight());
		add(displayImage);
		
	}
	

}
